	<div class="location">当前位置：
		<?php echo $this->Html->link('首页',array('controller'=>'Index','action'=>'index','plugin'=>false))?> &gt; 
		<span>场馆导航</span>
	</div>
  	<div class="content">
		<div class="cgMenu Box">
        	<div class="clear"></div>
        	<div class="cgMenu_top">
            	<span>场馆查询</span>
                <div class="cgTop_left floatl">
                	<?php 
                		$sel = array('usefor'=>false);
                		$split = str_replace('usefor','', $sparams[0]);
                		if($split){
                			$sel = array('usefor'=>$split);
                		}else{
                			$sparams = array('usefor'=>false);
                		}
                	?>
                	<?php 
                		echo $this->Html->link('全部',citylink('Venues','index',false,false),array('class'=>(!$sel['usefor'])?'quanbu':''))
                	?>
                	<?php foreach ($usefor as $for_id=>$for):?>
                		<?php echo $this->Html->link($for,citylink('Venues','index',false,false)+array('usefor'.$for_id),
                				array('class'=>($sel['usefor']==$for_id)?'quanbu':'')
                				)?>
                	<?php endforeach;?>
                </div>
                <div class="cgTop_right floatr" style = 'display:none'>
                	<input name="" type="text" class="text" style = 'width:160px;'>
                    <input name="" type="button" class="btnA" value="搜索">
                </div>
            </div>
            <ul class="cgList">
            	<?php foreach($venues as $venue):?>
            	<li>
            		<?php 
            			if($venue['SysPhoto']['id']){
            				$pic = $venue['SysPhoto']['file_path'];
            			}else{
            				$pic = 'default/cgimg1.jpg';
            			}
            			$image = $this->Html->image($pic,
            					array('width'=>209,'height'=>168,
										'title'=>$venue['Venue']['title_cn'],
										'alt'=>$venue['Venue']['title_cn']));
						echo $this->Html->link($image,
							citylink('Venues','view')+array($venue['Venue']['id']),
							array('title'=>$venue['Venue']['title_cn'],'escape'=>false,'target'=>'_blank'));
					?>
					<?php 
						echo $this->Html->link($venue['Venue']['title_cn'],
								citylink('Venues','view')+array($venue['Venue']['id']),
									array('title'=>$venue['Venue']['title_cn'],'class'=>'name','target'=>'_blank'));
					?>
                    <p>地址：<?php echo $venue['Venue']['way_address']?></p>
                    <?php 
                    echo $this->Html->link('正在进行演出('.$venue['Venue']['count_tickets'].')',
                    		citylink('Venues','view')+array($venue['Venue']['id']),
                    		array('class'=>'juban','target'=>'_blank'));
                    ?>
                </li>
            		<?php //pr($venue)?>
                <?php endforeach;?>
                <div class="clear"></div>
            </ul>
             <div class="fanye">
        <?php 
            $this->Paginator->options(array('url' => citylink('Venues','index',false,false)+$sparams));
            echo $this->Paginator->prev(__('上一页'), array(),null,array('class' => 'prev disabled'));
            echo $this->Paginator->numbers(array('first' => 2, 'last' => 2,'separator'=>' ','tag'=>'span')); 
            echo $this->Paginator->next(__('下一页'), array(),null,array('class' => 'next disabled'));
            echo $this->Paginator->counter(' 共{:pages}页');
        ?>
        </div>
            <div class="clear"></div>
        </div>
  </div>	
